02. srcset

srcset

INSTRUCTOR NOTE:

Spot the deliberate mistake!

At around 2:30 you'll see that Firefox chooses wallaby_1x.jpg even with srcset turned on. That's because we did the screencast on a 1x display :^).


Examples:



A fun article on srcset (Warning: A little bit of NSFW language)

Device pixel density list

More information about working with pixel density

Working with h units

Wikipedia wallabies